package com.ccrfid.rmc6.entity.vehicle;

import javax.persistence.*;

@Entity
@Table(name = "vehicle_photo")
public class VehiclePhotoEntity {
    private Long vehicleId;
    private byte[] image;

    @Id
    @Column(name = "vehicle_id", nullable = false)
    public Long getVehicleId() {
        return vehicleId;
    }

    public void setVehicleId(Long vehicleId) {
        this.vehicleId = vehicleId;
    }

    @Lob
    @Column(name = "image", nullable = true)
    public byte[] getImage() {
        return image;
    }

    public void setImage(byte[] image) {
        this.image = image;
    }
}
